package com.mem.test;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import front.membr.model.MemService;
import front.membr.model.MemVO;



public class GetMemInfo extends HttpServlet {
	
	public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
		req.setCharacterEncoding("UTF-8");
		res.setCharacterEncoding("UTF-8");
		res.setContentType("text/html");
		String maccount = req.getParameter("maccount");
		MemService ms = new MemService();
		MemVO mvo = ms.getOneMem(maccount);
		
		PrintWriter out = res.getWriter();
		out.print(mvo.getMname() + "," + mvo.getCity() + mvo.getTown() + mvo.getRoute() + "," + mvo.getMphonetel());
		out.close();
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

}
